<?
class GDataGridCurrencyFormat extends GDataGridFormat{
	public $dp=2;
	public $symbol=0;
	public function __construct($dp=2,$symbol="$"){
		$this->dp=$dp;
		$this->symbol=$symbol;
		$this->setAlign(GDataGridAlignType::RIGHT);
	}
	public function getValue(){
		$value=formatter::currency($this->value,$this->dp,",",$this->symbol);
		return($value);
	}
};
?>